#ifndef RTPPARSE_TRANSPORTTUPLE_H
#define RTPPARSE_TRANSPORTTUPLE_H

#include "UdpSocket.h"
#include <string>

class TransportTuple {
public:
    enum class Protocol : uint8_t{
		UDP = 1,
		TCP
	};
public:
    TransportTuple(UdpSocket *udpSocket, const struct sockaddr*udpRemoteAddr):udpSocket(udpSocket), udpRemoteAddr((struct sockaddr *)udpRemoteAddr), protocol(Protocol::UDP){}
public:
	uint64_t hash{ 0u };
private:
    UdpSocket *udpSocket { nullptr };
    struct sockaddr *udpRemoteAddr { nullptr };
    std::string localAnnounceAddress;
    Protocol protocol;
};

#endif